var logger = require('../models/Logger')
  , RequestHandler = require('../models/RequestHandler')
  , config = require('../config').config;
/**
 * 验证是否是4joy用户
 */
exports.accLog = function (req, res, next){
	var openId = req.params.openId?req.params.openId:req.body.openId;
	if(openId){
		var user = userListCache[openId];
		if(user){
            logger.acclog(user.email ? user.email+': '+req.url : user.openId+': '+req.url);
		}
	}
	next();
}
